package cn.exrick.xboot.modules.transport.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author gj
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "b_company_warehouses")
@TableName("b_company_warehouses")
@ApiModel(value = "物流公司仓点信息")
public class CompanyWarehouses extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属物流公司的ID")
    private Long companyId;

    @ApiModelProperty(value = "仓点所在地区的ID")
    private Long regionId;

    @ApiModelProperty(value = "仓点的坐标信息")
    private String coordinates;

    @ApiModelProperty(value = "仓点地址名称")
    private String warehouseName;

    @ApiModelProperty(value = "仓点联系人Id")
    private Long contactId;

    @ApiModelProperty(value = "仓点联系人姓名")
    private String contactPersonName;

    @ApiModelProperty(value = "仓点联系人电话")
    private String contactPersonPhone;

    @ApiModelProperty(value = "用户当前仓点切换状态 0未启动，1 启动")
    private Integer status;

    @ApiModelProperty(value = "仓点剩余抵押金金额")
    private BigDecimal remainingDeposit;
}